package com.hjj.springboot.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hjj.springboot.entity.Product;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

public interface ProductMapper extends BaseMapper<Product> {

    List<Product> list(Map<String, Object> map);

    Long getTotal(Map<String, Object> map);

    void update(Product product);

    void add(Product product);

    Product findById(Integer id);
}
